#include "enemy.h"

Enemy::Enemy() {

}

Enemy::Enemy(float posX, float posY) {
	this->hitpoints = 1;
	this->movingSpeed = 0.1f;
	this->direction = EnemyDirection::RIGHT;
	this->startPosX = posX;
	this->startPosY = posY;
}

Enemy::Enemy(CL_Sprite* image) {
	this->image = image;
	Enemy();
}
Enemy::~Enemy(void) {
}

CL_Sprite* Enemy::getImage() {
	return image;
}

void Enemy::setImage(CL_Sprite* image) {
	this->image = image;
}

float Enemy::getPosX() {
	return this->posX;
}

float Enemy::getPosY() {
	return this->posY;
}

void Enemy::setPosX(float posX) {
	this->posX = posX;
}

void Enemy::setPosY(float posY) {
	this->posY = posY;
}

void Enemy::setRange(int range) {
	this->range = range;
}

void Enemy::setMovingSpeed(float speed) {
	this->movingSpeed = speed;
}

float Enemy::getMovingSpeed() {
	return this->movingSpeed;
}

float Enemy::getStartPosX() {
	return this->startPosX;
}

int Enemy::getRange() {
	return this->range;
}

EnemyDirection::MovingDirection Enemy::getMovingDirection() {
	return this->direction;
}

void Enemy::setMovingDirection(EnemyDirection::MovingDirection direction) {
	this->direction = direction;
}
